package com.itheima.day02.myextends.test5;

public class Zi extends Fu {
    private int zi = 2;

    public Zi() {
    }

    public Zi(int zi) {
        this.zi = zi;
    }

    public Zi(int fu, int zi) {
        super(fu);
        this.zi = zi;
    }

    public int getZi() {
        return zi;
    }

    public void setZi(int zi) {
        this.zi = zi;
    }

    public void method(){
        System.out.println(this.zi);
    }
    public void show(){
        System.out.println("子类方法");
        this.method();
        System.out.println("父类方法");
        super.method();

    }

}
